package com.bluejie.springBoot.filter;

import com.bluejie.springBoot.tools.LogUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by bluej on 2018-03-19.
 */
public class BluejFilter implements Filter {
    Logger log = LogUtil.getLog(BluejFilter.class);

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        log.info("init()");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("doFilter()");
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {
        log.info("destroy()");

    }
}
